package cn.yitun.chat.yitunservermanagecore.general.manage.index.service;

import cn.yitun.chat.yituncommonmessage.Info;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.system.user.UserDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.userchat.SecurityQuestionDto;

import java.util.List; /**
 * 账号相关业务
 * Date 2019-01-20 12:35:32
 * Description
 * @author yitun
 * @version 1.1
 */
public interface AccountService {

	boolean isExistAccount(Long userId, String account);

	boolean isExistEmail(Long userId, String email);

	boolean isExistMobile(Long userId, String mobile);

	/**
	 * 注册
	 * @param user
	 * @param securityQuestionList
	 * @return
	 */
    Info register(UserDto user, List<SecurityQuestionDto> securityQuestionList);
}
